package com.shop.supply;

import com.shop.supply.service.SupplierService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @description：
 * @author：xyj
 * @date：2021/7/23 16:50
 * @versions：v1.0
 */
public class Text {

    public static void main(String[] args) {

      ApplicationContext cpa = new ClassPathXmlApplicationContext("spring-dao.xml");

        SupplierService bean = cpa.getBean(SupplierService.class);
        System.out.println(bean.getSupplierid(1));

    }

}
